package com.koliko.from_now_on.utils;

import com.mysql.cj.jdbc.MysqlDataSource;
import org.apache.commons.dbutils.QueryRunner;

public class MyDBUtils {
    private static MysqlDataSource dataSource;
    static {
        dataSource = new MysqlDataSource();
        dataSource.setUser("fromnowon");
        dataSource.setPassword("DKxLtnnZa3ACWNiN");
        dataSource.setUrl("jdbc:mysql://42.193.160.52:3306/fromnowon?serverTimezone=UTC");
    }
    public static QueryRunner getQueryRunner(){
        QueryRunner runner = new QueryRunner(dataSource);
        return runner;
    }
}
